Skip to content

Conversation

einalien
Copy link
Owner

@einalien einalien commented Nov 1, 2026 •

Summary

This PR extends the existing CI/CD pipeline by introducing automated deployment to the STAGE environment after a successful TEST deployment.

Changes

  • Added a new deploy-stage job to the existing GitHub Actions deployment workflow.
  • Configured STAGE to run only after deploy-test completes successfully using needs: deploy-test.
  • Added environment-specific OpenStack authentication using GitHub Actions secrets and variables.
  • Added Kubernetes authentication and remote state backend initialization for STAGE.
  • Configured sequential deployment of STAGE network and frontend infrastructure.
  • Reused the existing OpenTofu plan validation to prevent automatic application of destructive changes.
  • Added cleanup of temporary credentials, plans, and logs.

Deployment Workflow

CI → Deploy TEST → Deploy STAGE

Validation

  • Verified YAML structure and job dependencies.
  • Verified Bash script syntax.
  • Confirmed that STAGE uses separate deployment configuration paths.
  • Verify successful STAGE deployment through GitHub Actions.
  • Verify STAGE infrastructure resources in OpenStack.

Notes

The STAGE deployment supports initial infrastructure provisioning without requiring existing managed resources in its remote state. Subsequent deployments will use the same non-destructive plan validation as TEST.

@einalien einalien added the enhancement New feature or request label Nov 1, 2026
@einalien einalien self-assigned this Nov 1, 2026
@einalien einalien merged commit 9438a60 into main Nov 1, 2026
1 check passed
@einalien einalien deleted the feat/stage-automated-apply branch November 1, 2026 21:13
Sign in to join this conversation on GitHub.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant